package com.zhiyou100.entity;

import jdk.nashorn.internal.objects.annotations.Constructor;
import lombok.*;

import javax.persistence.Entity;
import java.io.Serializable;

/**
 * 丈夫 实体类
 *
 * @author yang
 * @version 1.0.0
 * @date 2020-09-19 11:16
 */

@Builder
@NoArgsConstructor
@AllArgsConstructor
@Setter
@Getter
public class Husband implements Serializable {
    private Integer hid;
    private String hname;
    private Wife wife;

    @Override
    public String toString() {
        return "Husband{" +
                "hid=" + hid +
                ", hname='" + hname + '\'' +
                '}';
    }
}
